﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Rose.Models.NewTrendModel>" %>
<%@ Import Namespace="Rose.Helper" %>
<%@ Import Namespace="Rose.Models" %>

<% CheckRelationHelpModel help = new CheckRelationHelpModel();
   
    
    string selfId = new CheckHelpModel().CheckCurrentUserId();
    UserInfo userinfo = new CheckHelpModel().CheckUserInfo(selfId);
    bool isman = userinfo.IsMan;
      %>



<div id="focusfeeling">

<div class="left-drop" id="lastfocus"><input type="button" /></div>
<div class="middle-drop">

<%if (!string.IsNullOrEmpty(Model.UserId))
  { %>
<div class="imagepart"><img data="<%=Model.UserId %>" onclick="PublicAlbum(this);" src="<%=Model.ImagePath %>" class="headimage"></div>

<div class="trendcontent">
<%if (Model.Type == 0)
  { %>
  <p class="headline"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=Model.UserId}) %>"><span><%=Model.Name%></span></a>发表文章<a target="_blank" class="pointer" onclick="SeeArticle(this);" articledata="<%=Model.Link %>"><span><%=Model.Title %></span></a></p>
  <p class="contentline"><%=Model.Content%></p>
<p class="commentline"><span><%=Model.CreateTime%></span></p>

<%} %>

<%else if (Model.Type == 1)
    { %>
   <p class="headline"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=Model.UserId}) %>"><span><%=Model.Name%></span></a>分享链接<a target="_blank" href="<%=Model.Link %>"><span><%=Model.Title %></span></a></p>
  <p class="contentline"><%=Model.Content%></p>
<p class="commentline"><span><%=Model.CreateTime%></span></p>
<%} %>

<%else if (Model.Type == 2)
    { %>
    <p class="headline"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=Model.UserId}) %>"><span><%=Model.Name%></span></a>上传相片到<a target="_blank"  onclick="AlbumPhoto(this);" data="<%=Model.Link %>"><span><%=Model.Title %></span></a></p>
    <p class="contentline"><a><img class="photo" onclick="BigPhoto(this);" src="<%=Model.PhotoPath %>"/></a></p>
    <p class="commentline"><span><%=Model.CreateTime%></span></p>
<%} %>

<%else if (Model.Type == 3)
    { %>
   <p class="headline"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=Model.UserId}) %>"><span><%=Model.Name%></span></a>记下心情<a target="_blank" href="<%=Model.Link %>"><span><%=Model.Title %></span></a></p>
   <p class="contentline"><%=Model.Content%></p>
   <p class="commentline"><span><%=Model.CreateTime%></span></p>
<%} %>


</div>










  <%}
  else
  {%>

  <%if (isman)
    { %>
    
  <div class="imagepart" ><img class="headimage" src="../../Content/Images/female.jpg" /></div>
    <%}
    else
    {%>
     <div class="imagepart"><img class="headimage" src="../../Content/Images/male.jpg" /></div>
    <%} %>
 
  <div class="feelingcontent">
    <p class="headline"><span>你还没有关注者</span></p>
    <p class="contentline">用户须知:当你关注某个人，TA的心情将会出现在此处!</p>
  </div>


  <%} %>

 
</div><!--end of middle drop-->

<div class="right-drop" id="nextfocus"><input type="button" /></div>

</div><!--end focusfeeling-->



